class StoreStaffAttendence < StoreStaffEvent
  # 考勤
  scope :without_off, -> { where.not(sort: ATTENDENCE_SORT["调休"]) }
  scope :attendence_off, -> { where(sort: ATTENDENCE_SORT["调休"]) }

  ATTENDENCE_SORT = EventType::TYPES_ARRAY[:StoreStaffAttendence].invert
  SORT_TYPE = EventType::TYPES_ARRAY[:StoreStaffAttendence]
  OFF = ATTENDENCE_SORT["调休"]

  def attendence_amount

  end

  def sort_name
    SORT_TYPE[sort]
  end

  def offable
    self.sort == OFF
  end
end
